<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="/html/layui/jquery-3.2.1.min.js"></script>
    <script src="/html/layui/layui.js"></script>
    <script src="js/add.js"></script>
    <link href="../layui/css/layui.css" rel="stylesheet">
</head>
<body>
    <h2>添加商品</h2>
    <form id="productForm">
        商品名：<input type="text" name="name"><br>
        单价：<input type="text" name="price"><br>
        生产日期：<input type="text" name="createDate" id="createDate"><br>
        <a class="layui-btn layui-btn-warm" href="javascript:addProduct()"><i class="layui-icon layui-icon-add-circle"></i>添加</a>
    </form>
</body>
</html>